import request from '@/utils/request'

// 查询景点预约列表
export function listAppTravelSightAppointment(query) {
  return request({
    url: '/app/appTravelSightAppointment/list',
    method: 'get',
    params: query
  })
}

// 查询景点预约详细
export function getAppTravelSightAppointment(id) {
  return request({
    url: '/app/appTravelSightAppointment/' + id,
    method: 'get'
  })
}

// 新增景点预约
export function addAppTravelSightAppointment(data) {
  return request({
    url: '/app/appTravelSightAppointment',
    method: 'post',
    data: data
  })
}

// 修改景点预约
export function updateAppTravelSightAppointment(data) {
  return request({
    url: '/app/appTravelSightAppointment',
    method: 'put',
    data: data
  })
}

// 删除景点预约
export function delAppTravelSightAppointment(id) {
  return request({
    url: '/app/appTravelSightAppointment/' + id,
    method: 'delete'
  })
}
